package com.xgll.modules.admin.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xgll.modules.admin.dao.PromoterDao;
import com.xgll.modules.admin.entity.PromoterEntity;
import com.xgll.modules.admin.service.PromoterService;



@Service("promoterService")
public class PromoterServiceImpl implements PromoterService {
	@Autowired
	private PromoterDao promoterDao;
	
	@Override
	public PromoterEntity queryObject(Integer id){
		return promoterDao.queryObject(id);
	}
	
	@Override
	public List<PromoterEntity> queryList(Map<String, Object> map){
		return promoterDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return promoterDao.queryTotal(map);
	}
	
	@Override
	public void save(PromoterEntity promoter){
		promoterDao.save(promoter);
	}
	
	@Override
	public void update(PromoterEntity promoter){
		promoterDao.update(promoter);
	}
	
	@Override
	public void delete(Integer id){
		promoterDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		promoterDao.deleteBatch(ids);
	}
	
}
